package operation;

import book.Booklist;

import java.util.Scanner;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: XMQ
 * Date: 2022-05-18
 * Time: 8:17
 */
public class DisplayOperation implements IOperation{

    @Override
    public void work(Booklist booklist) {
        System.out.println("显示图书!");
        for (int i = 0; i <booklist.getUseSize() ; i++) {
                System.out.println(booklist.getBooks(i));
        }
    }
}
